package cn.k.service;

import cn.k.domain.Employee;
import cn.k.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {
    void insert(Employee employee, Long[] roleIds);

    void delete(Long id);

    void update(Employee employee, Long[] roleIds);

    Employee get(Long id);

    List<Employee> selectAll();


    List<Employee> selectForList(QueryObject qo);

    PageInfo<Employee> query(QueryObject qo);

    Employee login(String username, String password);

    boolean checkUsername(String username);

    Workbook exportXls();

    void importXls(Workbook wb);

    Employee selectByUsername(String username);
}
